package com.lekang.controller;

import com.lekang.R;
import com.lekang.ZcqEntity.CarerSetDTO;
import com.lekang.le.service.CarerBedService;
import com.lekang.le.service.impl.CarerBedServiceImpl;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/system/job")
public class CarerBedZcqController {
    @Resource
    private CarerBedService carerBedService;
    @RequestMapping("/carerSet")
    public R carerSet(@RequestBody CarerSetDTO dto){
        System.out.println("前端传过来的数据"+dto);
        carerBedService.setCarer(dto);
        return R.ok();
    }

}
